<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<form id="pagerForm" action="demo/database/dwzOrgLookup.html">
	<input type="hidden" name="pageNum" value="1" /> <input type="hidden" name="numPerPage" value="${model.numPerPage}" /> <input type="hidden" name="orderField" value="${param.orderField}" /> <input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" method="post" action="demo/database/dwzOrgLookup.html" onsubmit="return dwzSearch(this, 'dialog');">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>部门名称：${requestScope.result.name}</td>
					<td>编制：${requestScope.result.arst}</td>
					<td>在职人数：${requestScope.result.cunt}</td>
					<td>备注：${requestScope.result.remk}</td>
				</tr>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<!-- <th width="22"><input type="checkbox" group="id" class="checkboxCtrl"></th> -->
				<th orderField="name" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'name'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>岗位名称</th>
				<th orderField="dmname" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'dmname'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>部门名称</th>
				<th orderField="pname" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'pname'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>上级岗位</th>
				<th orderField="remk"  width="150" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'remk'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>备注</th>
				<!-- <th>是否删除：0-未删除、1-已删除、2-不能删除</th> -->
				<!-- <th width="300">操作</th> -->
			</tr>
		</thead>
		<tbody>

			<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
					<tr>
						<%-- <td><c:if test="${record.del!=3}">
								<input name="id" value=${record.id } type="checkbox">
							</c:if></td> --%>
						<td>${record.name}</td>
						<td>${record.dmname}</td>
						<td>${record.pname}</td>
						<td>${record.remk}</td>
						<%-- <td>${record.del}</td> --%>
						<%-- <td>
							<shiro:hasPermission name="/system/role/toUpdatePermission">
								<a class="deleteBtn" title="授权权限" mask="true" href="${pageContext.request.contextPath}/system/role/toUpdatePermission?id=${record.id}" rel="update" target="dialog" width="820" height="460"><span>授权权限</span></a>
							</shiro:hasPermission>
							
							<shiro:hasPermission name="/system/role/toUpdateCommonly">
								<a class="deleteBtn" title="常用功能" mask="true" href="${pageContext.request.contextPath}/system/role/toUpdateCommonly?id=${record.id}" rel="update" target="dialog" width="820" height="460"><span>常用功能</span></a>
							</shiro:hasPermission>
							
							<shiro:hasPermission name="/system/role/toUpdate">
								<a title="编辑" target="dialog" width="820" height="460" mask="true" href="${pageContext.request.contextPath}/system/role/toUpdate?id=${record.id}" class="editBtn"><span>编辑</span></a>
							</shiro:hasPermission> 
							
						<c:if test="${record.del!=3}">
							<shiro:hasPermission name="/system/role/delete">
								<a title="确定要删除吗？" mask="true" target="ajaxTodo" href="${pageContext.request.contextPath}/system/role/delete?id=${record.id}" class="deleteBtn"><span>删除</span></a>
							</shiro:hasPermission> 
						</c:if>
						</td> --%>
					</tr>
				</c:forEach>
			</c:if>

		</tbody>
	</table>
</div>